add variable callbacks