get rid of unnecessary shell command
skip the lines for new wrapper function when importing the automatch script
insert automatch at end of main function