split up borders and flags