can't have both host and uri in config, one or other
fix spelling of port
decouple hook and server