implement simple process memory read/write functions