added new isSaving code now for RAS and PYAS