split, while ugly, works