Added 'r' to open call

Signed-off-by: Ian bell <ian.h.bell@gmail.com>