add line and character support