added environment based config