add functions into bin2chroot