got EM sampling working, cannot run on my laptop