set a callback rather than the output