add sandbox toggle
re-add code