few fixes w/ non-ms rewrites. added new constants for defining where media is stored