bugfix such that example programs do not give a segmentation fault when required services are not running
Using namespaces everywhere