support both sandbox and live in each environments