move media to util to fix #103