rename dirs -> resource