reworked update chroot script