start of graphite integration