prefer env variable for registry_path