use static methods for registry instead of singleton pattern