add new handler hook "ReceiveRequest" & some small changes