more API cleanup
Introduce the error or warn functionality for rejected attributes