add type attribute; load with base url