adding output argument handling...