safe global initialization