some padding functions we're going to need for 0.9.8