pl, mkcd, and other fixes