moved all paths out of functions to vars