error handling, but broke something
fixed non working post