use correct resdir