pass credentials to server, fixes #26