add collector callbacks and master