start adding some logging function