added matches to script
fixes and match sorting