updating training file generation to be able to work a particular deviceid