prepare engine, config and spec