replace global config with configstore closes #243