api: implemented manager by instance.