add check for pull option