export functions for external model init