finished qs_ip.py