modified simple client proc