fix for fd sets and also changed client class to use out fd