Refactored static/dinamic dispach logic to serve method