improve error mesage in case a gateway has not the right instance