improved rnq to remove carriage returns
added prep