fixes for appcache