creates dir on first launch, fixes bug where the same doc would be loaded