started debugging, getting segfaults (caught signal number 11)