move logging helper to a separate file