added localconfig to load enviromental variables