fix bugs and add postAll mothod