refactoring

adding ad support