added output option