trying to wrap my head around how this all works, dirty hacks