networking works now

Fixed heap allocation error