add check for undefined pull option