RMEs, proper line checking (#45, #33)