make sure we are using subledger gem 0.6.x and fix accounting logic