almost there. now to work on the server side