added GETACTION, HANDOVER, and DISCARD logic