added internal URL support