fixed crashes; still debugging