bugfix and added --segfault
one last bugfix