new implementation of checkdestination