add warning for repeated use of weak refs