added the API template; additional tag support