add little error hundler