initialize global variables to null - fixes #102