adding API for producer