relocating code to the server folder