added support for plist and XML