get appcache stuff working