add support for native objects