auto add and commit