added ability to supply hash to post and creation of hash