refactor rootfs