since try_write() is not used anywhere in the module itself, move it to the utils