added basename to get the routername