many improvements in running larch macros from scan server