remove detailed error codes, add testing