supporting p2sh in createOutputScript