refactor verbose messages into trace