added url checks