isFault method added and bugfix