set sandbox mode in constructor