save and restore configurations from app