replace silly error decorators with call wrapper for native functions
removed leading underscore on references to error_code_map