more work on the line-detection module