use relocatable again, add regression test