added minimal output mode