read all the commands