implementation of main thread/changes to Lead