fixing push
pull function is broken - it calls session.load, which doesn't exist, and if ref is None, won't work...