report errors correctly both to the console and response
always require the period parameter
show total amounts and counts as well