[task] Refactor credit control, add update serv state module