refactoring: split functions for keepPingOpen options sake