lock hadleUrl function