added id valid flag for media location