added url check