improved (?) occlusion detection