add tools and finish debug