added more compare logic filters and min socket check