better yaml check