pretty good working state. minor quirks to get out