added commit command to rules