edits to the prepare_for_pkg functions.