added handling of general errors

general errors are these that do not have corresponding inputs