All jobs api and refactor TN config