relocation code for MyLucene