removed depr static method calls in favour of the Singleton approach. debug only