speeded up meds saving
(#376)