a horrible postinstall script