modify router classs