working occulsion, still needs I/O and fixes to polar_scan