appcache fix, cleanup