initial import from snake-build.