api key can now be read from global option as well