first working version

still need to implement EB restart hook