cleaned up line detection directory