migrate logging to winston