fix CachedAuthorize

fails after cakephp update
fix app installation issues