fixed bug when using different store_dir then 'CA'