added peer errors, fixed key