implement Ampache handshake