implement immediate callback
Merge remote-tracking branch 'tellnes/immediate'