update code for media and static uls