speeded up meds saving
(#376)
Merge branch 'master' into #376