added multiple read write functions, still in debugging state