tweaked the engine sample and added a build script for my own usage