better media handling and favicon