iterate commands