setup routing, and add system files to be ignored