prevent session save when unmodified

fixes #7
closes #38