adapted updated pkg and md from 0.4.2