add diagnostics for development