trying to get file stubbing working, might need to try another route higher level