fixed reply handler