add check to see if serviceconfiguration is not null