fix getMedia
fix rate limit
fix rate limit