added in flags to specify rescan on start, specify location of config file