move graphite doc loading into graphite