start scanning at startup if a path is defined, implement stop scan functionality