fixed segfault
messing about