added new functionality for demos and tested the SSL/RD example