allow more general config; accept stdout template option