added support for subobjects formating