fixed some environment stuff
fixed config