changing object in require cache rather than writing to file system