add custom callback example