init global objects

To prevent segfaults init globalobject