server code does not wrok tho