added archive
bugfixes on opening/closing store
exec switched to execSync