move scan interval to a default value and command line flag in store.go