new service spec and functions