added rudimentary core dump