working on posts update script