remove unused variable, fix client_accept