added a 3 new functions - scanPath, setTrailer, and remove