command frame handler