still can't figure out why connection breaks