wrapper methods for mem/io read and write