added support for curried objects