some setup stuff for file logging