extend server object with own methods
extend template with own functions