ignore files in public
refactor: use map