using env var to determine callback