safe mode + general checkbox function