small refactor, reimplemented dir reopening on player restore