rename implemented
refactoring + rename fix
raw_write fix