trying to port over resume
here it is