fix resource lookup