refactor binary folder