Separated server functionality from node, to open for server extension