setup can pass array of items or object containing items