config accepts data array