harness: factor helper functions into separate files
sth: remove extra close-paren (syntax error)