fixed some bugs, discovered more bugs...weird EM results