public credentials now sent before media if key hadn't been sent before