setup helper for postitem