code and specs - flushing a pad with updated api