attempt to add an appcache, for now without success
small refactor