[IMP] hr: strenghtening of write()