change curl interface to understand logger