configure based on environment