updated to clear app cache before use