add max length to simple bubbles
improve error message for buildgraph format failures