fixed bug with external imports in AddRoute