master class for media writing