move config from main.go to config.go, add filters