ensure makesure()'s return validate function can run in a external scope