added save and restore for village data