fix paths and add chroot in prompt
add http_debug and gi funcs