named capture, printf, pass obj as args