added basic output arg handling