testing the server
fix token generation and saving