tidy root ServiceAPI