rate limit and transform output