make client threadable; adding some file