implemented control frame handling