changed BackEndMain to a static class