fixing errors. not core.c:init not stable