net library error handling improvements + small fixes here and there