implementing skeleton of log & tail wrapper