relocating extension code