changed setUri and initServerVars from protected to public