This is simple path router for use in client side