implemented simple routing using regex