moved log into run