modify web api start logic.