add sandbox support - fixes #1