simplified XML processing and eliminated helper classes