fixed model initialization interface for general usage