beam is a dir module now, weak refs