add generic get content method