fix http methods implementation