reformat
fixed error handling on post search