modified the script to take a config, and added an ignore file