improvements in handler.dasm