fix up load order and xml parsing