renamed pager objects; updated Resource to handle id -> Resource resolves more intuitively using a partial function