ls lookalike works
refactored main