define basic defservice and extend-service