made verything work with the server