server code works kinda