small fixes, offline appcache