continued implementation of  'visibility' retrieval: fixed a few issues