removed commented out function, implement native post error