fix bug in scandefs
improved macro editor