added support for parsing into object