added compare_lines, astro utils