modified client.pl from file