init guard for all functions (for static vars)