added back print resume functionality
solved a few bugs