reset C static vars on each invocation