init opts to array