sanity check for callbacks