refactor: code cleanup + log instead of print
feat: disable listing directory