added resource, singleton to initialize data and applicationConfig