fixing and preparing the environment to use with fog