modularized for execution after chroot