add usage logging