strip out a bunch of unused extra stuff