simplify callbacks injection