refactored to unify properties loading call
first draft of XML properties support