trying to figure out why ESP disconnects