how to manage configuration with profiles