add resume functionality and other edits.