extending object handler to support singletons and basic rpc