able to commit one file at a time