fix(classes) misc class fixes
migrate flags.rest => preferences.sleep