native class support (need tests)