tried to fix codecclient.c