initial version
required
EM not running error fixed
+ logging
q
q
q
q