added mx output to ray