add parse yaml method