adding rs.peek

There may be other places where it's applicable, but this is a start