adding monitrc and little bit of cleanup