better transaction management