overhaul load_pkg