importpkg: split process_package to process_control