removing pems
fixing stuff