support shell, dax and swift mode to return strings and to write to files