added persist_to_atomstore functionality