added router hooks