correctly parse last line