ugly hack to detect where separator lines should be