Slave can execute cmd. Fixed crashed on server kicking slave
fixing repo + minor code cleaning