cosim example with more options