moved sandbox initialization