try printing debug messages to log_fh