auto commit before refresh
auto commit after refresh