add post error handling