added support for OpenHRS by adding in the server variable to the function init.