moved reset to separate file