attach_to now has correct lifetime specifiers