define labels from map, bugfix in recv to read full length