added initial ray/plane stuff