fix reloading and chroot
make error log after dropping privileges
need to copy the string here