fixed typo recrusive; actually use global options