fixed handling of query string exclusions and updated startup rules