support logging to a file if provided in the config
bump version to 0.4.2