adopted queuegraph + added postgrey support