Adds error logging, corrects some wrong method calls in posts processing