add support for RWops