intermediate work, mostly hacks