working bloomby segfault elsewherte
segfault corrected