modified readme, modified onError callback