made yaml support and random