elaborate on lifetimes and mutable references in core API design