add error checking and debug to create_indexes
add error checking and debug to sync_packages_to_remote