added -f flag for errors