implemented simple server