editing works better. saving to file works. moving stuff out of builder.js