add support to sandbox_mode