now with configuration files and logging