adding a new resource
fix relationship blackhole.
fixing n+1 query to more efficient one.