from path to bin