final version of ats with jd_http_manager.py