Fixed most problems with swith to typed pipes. fd_server / client need to be changed.