take dict of config arguments in addition to command line for easier use as module