added pull functionality