stages renamed and added transaction required