pass algorithm to Callback and Logger