added the environment config and the package loader