added url parameters and threads