trace lib