new class for handle curl error
fix call onLoad callback