added pull and decrypt