fixed chrootapi