fill out and debug check_package()
syntax debug and make it quieter