add support for better error message back