replaced depricated http methods