add visibility checks to client
Merge pull request #48 from louridas/master

add visibility checks to client