modified unicorn_init