added media object helper and sample