fix two methods that were supposed to be lazy
track number of API requests and add debug setting