make xml support optional