use /home/medined instead of ~