implementing bin and profile opts in CLI