janalysi now writes mode to random file