shightly shorten example of programmatically adding a step handler