bugfix: added return value for CSV output mode