fixed url filtering and exceptions catching