update: change chmod to 775
bugfix: trim matchcodes