fultiple fixes for file url checking