cleanup
mediaflags fix