add gem better errors