replaced themepak detection with api call to stop useless exception