refractor services, integrate reports, custom realm implemenration