making diagram mojo working headless