modified rotation/resident files, fixed NM bug