make sure callbacks are used correctly