Init based on chestnut template