made GET and POST requests work