the model generation now checks that the given access level is valid