avoid 405 not allowed error