got config and environment detection in