super basic server implementation functional