fix resource support.