set yaml mode correctly