make media_size usable
handle symlinks better