triming of group ID within getGroupId()
implemented setupClusterDir and setupServerDir and removed getGroupId