local clean up and selenium