fixed some errors in media streaming scripts