more fixes to mirage packages