added first route and fixed referencing errors