date fixes, caching improvements, small bug fixes