move custom helper response codes into chret()
change $r to $ret
try to handle handlebars custom block helper