a template to handle OAI endpoints