seperate sandbox initialization

so that i can be reused in tests