resolve strong and weak references