Configuration and important fixes for environments