allow output config to be a directory