cleanup and securing routes