change http callback implementation