fixed bug in transaction scopeguard, fixed problems with updating credits on both uploads and downloads, fixed some unity conversion problems