better media post id handling