initialize Engine with a block, allow to set journal type