add bin and filetype detect