fix flush bug; default to current users privateKey