fix 500 error, change apply and remove PUTs to GETs