into(str, foo) calls resource