first implementation of authenticated routing