fix silly fail where I was trying to return a ref to a local variable