wrapper for mailgraph