now with optional file outputting