updating for new router api