fixed issues with manual linking and changed way socket reads form block to lione by line