can callback to gui to not clutter console so much