rename env to target, remove magic number "PRODUCTION"