move model code to subpackage
initialization