improve error-handling when validating+priority