added curl handler for testing