fix coment. fix url generator to thread safe