moved the directory var to the parameters file