fixed bin folder and other bugs