make the mkprofile command work