adds support for objects