set default resource root path & writable path