fixed reference's yaml read-writes