fixed inclusion of local and env config