phoebe: fixed flag zooming out stuff; added a legend.