added bin file and options parser for cmdline