draft of auto-build scripts, not tested, probably break