add nerva and refactor service to comform the requirement of salt