added mainservice, need implementation