added return codes to create-local-package