correct pid/domain interaction and url recognition