made service state configurable