updated commit. included archiving and basic error handling