added server-sided code and docs