Add tracing package for better diagnostics
fix serialization errors