added object persistence for speed improvements