restored res directory