added detect and throw command (with the files)