turned req + res into interfaces