fix client prototype