changed back to urlencode, put back SEQ and PID