ConfigFile -> FilePrintScan (generalized to be more useful); fucked code with gofmt