fixed producer/publish apis.