save persistent data in a separate directory