add err process for glob