finally made UOW work with deposit paid and version

Sorry for all the changes...