add util in_array + change app init order