status: sort of working kind of maybe a little
merged and resolved conflict - use wsendpoint variable again