use array for opts