refactor slot->read(write)-object function.