post,patch,delete functions now work properly