try to cleanup wx detection