now works as a server