add handling for partial lines