bugfix, cleanup of targetid_simple.py