handle yaml properly