fixed small repeat issue. also removed pem

(somewhat...)