fixed init to use static methods