yaml reader modified to work according to schema definition spec