ensuring the right http methods are set