add real line check
add catch Exception