fixed a bunch of global variables for the path