fixes issues with exported variables from case

fixes issue #36