updated to return args for intermediate tags