prints input args and output returns