make it easier to specify a callback method