fixes #19: detect strict mode