fix some bugs and make death visible