Reordered commands to load envs first