modified workdir into a global. yuk. made the way the file lists are built into a regex. need to update template. this a temp holdover to get stuff running