Fixed syntax issues
TODO: move pgp to non-vm process