read() and write() now check if the virtual function they want to