using a config file
added sample cfg