added few custom functions and bindings for reporting errors on saving files