made output configurable