added rays, and an unfortunate instances module