another attempt on service def