commit before doing other work