Encashment functionality, part 2

not completed, but works correctly