moved ResourceId to API, fixing compilation errors