clean bind with clazz and refactor isAutomatic