improvements for visibilitymanager code

Authored by mvourlakos on Apr 23 2019, 7:20 AM.