added routes & other code so it runs