settings restoring script added