if you ever code something that "feels like a hack but it works”...