update the method name from path_init to path_write