moving check core dpid to the beginning of the handle function since other application such as HTCondor could also use that information