dll export stuff, variable initialization