strange segfault. can't find the cause