add loop so multiple commands can be sent