debugging... all works except ray vs stuff