adding permissions. adding cachable search