update env
store resources in env