sandbox and streamencoder