fixed a locking bug in FaunusPipeline and made Graph instance static to JVM.