added general settings and xml handling