line handling