modify contracttools refence lib