cleaned up loader init and restart logic a bit, still not loading xml though