updated task to return nut obj