fix RMS bug; additional writeup; I can't sleep