ds_packet -> ds_cmd, refactoring