tracing down issues with the compiler; looks like off-by-one errors.
refactoring the sandbox