removed a few minor bugs
reuse old .*.mad files