use dir for resources