now adds directory if did not exist
works in theory, need to add it to the rest of the test framework