protocol: commands and packages, restart test