add bug capture files handling