add overlay hooks to server main