sorry-ass failed attempt at a workaround