use const CRLF, us struct to return method and pathname