beginning of appcache mechanism