some filename parsing and slug stuffs