added logging to router