added nocache, and some other small bug fixes