actions on matched files now run in correct order