add mainservice