only prepare the environment if it doesn't exist