edit diagnotic spec and rb file