refactor profile class to loop over directory once
rework bin script to work