moved ray trace handling over to the server side