implemented simple router