made reset device agnostic