add errors check from ruby app