added improved file logging for the module