Introducing support to multiple instances routing by ad-hoc class