only perform one chroot
refactor of thread queue access
directory tree cleanup & refactor