some corrections in media api