set the default data class automatically