made single linked list out of cmds