First pass at a graphite implementation.
allowing for empty prefix