make mediaurl a bit more flexible