support dispense shortcut command; fix bug in remainder calculation