updated xengine to handle file relocations a little better