fixed datadir stuff