killed many bugs, a lot segment fault remains