refactor according to new global_init prototype

Signed-off-by: swpd <swpdtz@gmail.com>