inlined a bunch of things