bug fix
gets task results with 'read' call rather than recv (recv was causing problems and not returning the whole result message)