added streams operators
serialize the whole setting struct