raytracing doesn't overlap
max/min in api
error handling