added to codes for using clients