adding 2 gems to detect errors better