called when lmw file being detected