adding support for filtering lines as well.