add hooks for use with Winston.jl