setup for debug to file