make the loading indicator behavior configurable for rest commands