Directory: don't connect on __init__ but only when needed