rename errorFlag to okFlag to make it even more clearer #22