trying more things to make this work. segfaults.